package com.sinosoft.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.sinosoft.entity.DefUser;
import com.sinosoft.model.EasyUITree;

public interface IHomeService {

	/**
	 * 登录校验
	 * @param user
	 * @param request
	 * @return
	 */
	Map<String, Object> login(DefUser user, HttpServletRequest request);
	
	/**
	 * 根据父ID递归查询子菜单集合,返回EasyUI的树形结构
	 * @param pid
	 * @param request
	 * @return
	 */
	List<EasyUITree> queryPrivilegeByPId(Long pid, HttpServletRequest request);
	
}
